// MarketShoppingGuideSalaryPlanDetailPreviewApi.ts
import fetcher from "../apis/Fetcher";
import {MarketShoppingGuideSalaryPlanRuleDetailPreviewResponse} from "./MarketShoppingGuideSalaryPlanDetailPreviewApi";

/**
 * 获取导购薪资方案规则详情预览
 * @param ruleId 规则ID
 * @param year 年份
 * @param month 月份
 */
export function previewMarketSettlementPlanRuleDetail(
    ruleId: number,
    year: number,
    month: number
) {
    return fetcher.get<MarketShoppingGuideSalaryPlanRuleDetailPreviewResponse[]>(
        `markets/settlementPlans/rules/${ruleId}/year/${year}/month/${month}/detail/preview`
    );
}